package cn.yshujia.transform;

import cn.yshujia.domain.entity.Label;
import cn.yshujia.domain.vo.LabelVO;

/**
 * @author YShuJia
 * @create 2025/2/23
 * @description LabelTransform
 */

public class LabelTransform {
	
	public static LabelVO entity2VO(Label label) {
		if (label == null) {
			return null;
		}
		LabelVO labelVO = new LabelVO();
		labelVO.setId(label.getId());
		labelVO.setClassifyId(label.getClassifyId());
		labelVO.setName(label.getName());
		labelVO.setIntroduction(label.getIntroduction());
		labelVO.setStatus(label.getStatus());
		return labelVO;
	}
}
